package myutils
{
	import flash.display.Sprite;
	import flash.events.Event;
	import flash.net.URLLoader;
	import flash.net.URLRequest;
	
	public class LoadXML extends Sprite 
	{
		private var myxml:XML;
		private var loader:URLLoader = new URLLoader();
		
		public function LoadXML(url:String)
		{
			var requestt:URLRequest = new URLRequest(url);
			loader.load(requestt);
			loader.addEventListener(Event.COMPLETE, onComplete);
		}
					
		public function onComplete(event:Event):void 
		{
			myxml = new XML(loader.data);
			trace("trace:"+myxml.image.LoaderA[0].@map);
		}
		
		public function getXml():XML
		{
			return myxml;			
		}
	}
}